Skip to content

fix(webdav): suppress superfluous WriteHeader and log underlying PROPFIND error#528

Merged
javi11 merged 1 commit intomainfrom
claude/fix-webdav-header-error-MjLdd
Apr 23, 2026
Merged

fix(webdav): suppress superfluous WriteHeader and log underlying PROPFIND error#528
javi11 merged 1 commit intomainfrom
claude/fix-webdav-header-error-MjLdd

Conversation

@javi11
Copy link
Copy Markdown
Owner

@javi11 javi11 commented Apr 23, 2026

When HandlePropfind writes 207 headers mid-walk and then encounters an
error, the caller's unconditional w.WriteHeader(status) triggers Go's
"superfluous response.WriteHeader" warning. Add a headerTracker wrapper
to detect whether headers were already committed; if so, skip the
redundant WriteHeader and log the underlying error instead.

https://claude.ai/code/session_01Wu4GcWKTyMySdMH3wbnikR

…FIND error

When HandlePropfind writes 207 headers mid-walk and then encounters an
error, the caller's unconditional w.WriteHeader(status) triggers Go's
"superfluous response.WriteHeader" warning. Add a headerTracker wrapper
to detect whether headers were already committed; if so, skip the
redundant WriteHeader and log the underlying error instead.

https://claude.ai/code/session_01Wu4GcWKTyMySdMH3wbnikR
@javi11 javi11 merged commit b42702e into main Apr 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants